#ifndef _GPRS_H
#define _GPRS_H

#include <termios.h>//串口控制
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>


void gprs_serial_init(int fd);
void gprs_usart_setup(const unsigned char *uart_root);
int gprs_read_line(FILE *stream);
int gprs_read_char(FILE *stream);
int reverse_phone_number(char *number);
int gprs_send(int fd, char *phonenumber, const char *message);
int gprs_send_message_to_emergency_call(char *message);


#endif
